import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
import 'normalize.css'
import './style/index.css'
import Vant from 'vant'
import 'vant/lib/index.css'
import Router from 'vue-router'
import dayjs from 'dayjs'
const originalPush = Router.prototype.push
Router.prototype.push = function push (location) {
  return originalPush.call(this, location).catch(err => err)
}
Vue.use(Vant)
Vue.filter('dateformat', function (value) {
  return dayjs(value).format('YYYY-MM-DD')
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
